<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="../node_modules/@vue/reactivity/dist/reactivity.global.js"></script>
    <script>
        let {effect, reactive} = VueReactivity;
        let state = reactive({name:'ll', age: 12, other:111, arr: [1,2,3]})
        effect(()=>{
            app.innerHTML = 'xxx' + state.name + '--' + state.arr
        })
        effect(()=>{
            console.log(state.name);
        })
        setTimeout(()=>{
            // state.other = 123
            state.xxx = 'zs';
            state.arr[100] = 99
        },1000)
    </script>
</body>
</html>